const router = require('koa-router')(),
    infoController = require('../controller/info'),
    loginCheck = require('../middlewares/logincheck');
router.prefix('/info');
router.post('/get_info', infoController.getInfo);
router.get('/get_info_all',loginCheck, infoController.getInfoAll);
router.post('/create_info', infoController.createInfo);
router.post('/destroy_info',loginCheck, infoController.destroyInfo);
router.get('/get_info_count',loginCheck, infoController.getInfoCount);
router.post('/login', infoController.Login);
module.exports = router; 